package com.developer.platform.infrastructure.error;

import com.veeker.core.enums.ErrorType;

/**
 * @author ：qiaoliang
 * @date ：2020-10-29
 */
public enum UserErrorType implements ErrorType {
    OLD_PASSWORD_ERROR("旧密码错误，请重新输入！"),
    USER_IS_NULL_ERROR("用户不存在！请稍候重试！"),
    USERNAME_ERROR("您输入的用户名已注册请重新输入！");

    private final int status;

    private final String message;

    UserErrorType(String message) {
        this.status = 409;
        this.message = message;
    }

    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
